//  dev | production | test | mock
const _env = 'dev';
var _host = '';
var _api = '';

switch (_env) {
  case 'dev':
    _host = 'https://www.epin.work/';
    break;
  case 'production':
    _host = 'https://www.epin.work/';
    break;
  case 'test':
    _host = 'https://www.epin.work/'
}

_api = _host + 'enterprise/';
module.exports = {
  api: _api,
  host: _host,
  env: _env,
  mockApi:'https://www.easy-mock.com/mock/5cc15a28b0d99a7a6aae495f/enterprise/',
  ERR_OK: 200, // 成功
  ERR_FAILURE: 220, // token失效
  ERR_TOKEN_LOST: 4002, // token缺少
};